'''编写函数,输出1~100中偶数之和'''
def fnc():
    n = int(input('请输入一个正整数'))
    sum = 0
    for i in range(1,n+1):
        if i % 2 == 0:
            sum += i
        else:
            sum += 0
    return sum
print(fnc())

